<h1><?php echo $title; ?></h1>
	<table class='list'>
	<tr>
		<th><?php echo __("Rimessa", $module) ?></th>
		<th><?php echo __("Conto/Bonifico", $module) ?></th>
		<th><?php echo __("Lordo", $module) ?></th>
		<th><?php echo __("Trattenute", $module) ?></th>
		<th><?php echo __("Netto", $module) ?></th>
	</tr>
<?php if($rows): ?>
<?php
		$totale = 0;
		$lordo = 0;
		$trattenute = 0;
		$i = 0;

?>		
<?php foreach($rows as $r): ?>
<?php
		$totale += $r['totale'];
		$lordo += $r['lordo'];
		$trattenute += $r['trattenute'];
		# Colore alternato righe
		$class = (($i % 2) == 0) ? 'item1' : 'item2';
?>
	<tr>
		<td><?php echo $r['nome'] ?></td>
		<td><?php echo $r['conto'] ?></td>
		<td style="text-align: right"><?php echo format_euro($r['lordo']) ?></td>
		<td style="text-align: right"><?php echo format_euro($r['trattenute']) ?></td>
		<td style="text-align: right"><?php echo format_euro($r['totale']) ?></td>
		
	</tr>
<?php endforeach; ?>
	<tr class='total'>
		<td style="text-align: right" colspan=2 class="total"><?php echo __("Totale", $module) ?></td>
		
		<td style="text-align: right" class="total"><?php echo format_euro($lordo) ?></td>
		<td style="text-align: right" class="total"><?php echo format_euro($trattenute) ?></td>
		<td style="text-align: right" class="total"><?php echo format_euro($totale) ?></td>
	</tr>
<?php endif; ?>
</table>
